/**

 Copyright 2001-2011, Motio, Inc.
 All rights reserved.

 **/
package net.emsquared.gamedev.screens;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import net.emsquared.gamedev.TestGame;

public class SplashScreen implements IScreen
{
   SpriteBatch spriteBatch;
   TestGame controller;

   @Override
   public void initialize(TestGame aController)
   {
      controller = aController;
      spriteBatch = new SpriteBatch();
   }

   @Override
   public void start()
   {
      //To change body of implemented methods use File | Settings | File Templates.
   }

   @Override
   public void update()
   {
      if(Gdx.input.isTouched())
      {
         controller.startScreen("MainScreen");
      }
   }

   @Override
   public void draw()
   {
      //To change body of implemented methods use File | Settings | File Templates.
   }

   @Override
   public void resize(int aWidth, int aHeight)
   {
      //To change body of implemented methods use File | Settings | File Templates.
   }

   @Override
   public void pause()
   {
      dispose();
   }

   @Override
   public void dispose()
   {
      //TODO find out how to dispose of this object.
   }
}
